﻿using System;
using MvvmFx.Common.ViewModels.Behaviors.LoadingSaving;
using Microsoft.Practices.Unity;

namespace MvvmFx.Samples.HowTos.ChangeTracking.ViewModels
{
    public class ContactDetailsLoader : ViewModelLoader<ContactDetailsViewModel>
    {
        #region Constructors

        public ContactDetailsLoader(IUnityContainer container)
            : base(container)
        {
        }

        #endregion

        protected override void OnLoad(ContactDetailsViewModel contactDetailsVM)
        {
            // Get the process state
            // var state = Container.Resolve<HolidayProcessState>();

            contactDetailsVM.Address = new AddressViewModel();

            //contactDetailsVM.People = state.ContactDetails.People;
            //contactDetailsVM.Nights = state.ContactDetails.Nights;
            //contactDetailsVM.Rating = state.ContactDetails.Rating;
        }
    }
}